package sctu.edu.java.year2016.team07.nieying.practice.Review;

import java.util.Date;

/**
 * Created by Administrator on 2016/6/19 0019.
 */
public class GetTime {
    public static void main(String[] args){
        Date date=new Date();
        System.out.println(""+date);
        System.out.println(""+String.format("%tH",date));
        System.out.println("" + String.format("%tI", date));
        System.out.println("" + String.format("%tk", date));
        System.out.println(""+String.format("%tM",date));
        System.out.println(""+String.format("%tS",date));
        System.out.println(""+String.format("%tZ",date));
        System.out.println(""+String.format("%tp",date));

    }
}
